package com.training.java.core.equals;

public class EqualsDemo {

	public static void main(String[] args) {
		
		
		Car car1 = new Car("1234","Ford","Focus");
		Car car2 = new Car("1234","Ford","Focus");
		
		//Comparing Cat1 with Car2 
		// Here boolean is defined because carsEqual will be true or false
		// 
		boolean carsEqual = car1.equals(car2);
		
		System.out.println("Are the cars equal? "+ carsEqual);
		
	}

}
